package br.com.sgo.util;

import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;

import br.com.sgo.model.Patient;
import br.com.sgo.model.User;

public class GenerateDatebase {

	public static void main(String[] args) {

		Configuration configuration = new Configuration();

		configuration.addAnnotatedClass(User.class);
		configuration.addAnnotatedClass(Patient.class);
		
		SchemaExport schemaExport = new SchemaExport(configuration);
		schemaExport.create(true, true);
		
		//SchemaUpdate schemaUpdate = new SchemaUpdate(configuration);
		//schemaUpdate.execute(true, true);
	}

}